<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>事件定位</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<%@ include file="../jslib/jquerylib.jsp" %>
	<link rel="stylesheet" type="text/css" href="<%=path %>/web/style/layout.css" />
	<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/lhgdialog/lhgcore.lhgdialog.min.js?skin=mac"></script>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/demo.css">
	<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>	
	<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
<!-- 关键字查询 -->  
  	  <div style='width:100%;text-align:center;'>
  		<h2>事件定位信息</h2><br/>
		<table>
	     	<tr>
	     		<td>经度：</td>
	     		<td>
	     			<input type='text' id='jingdu' name='jingdu' style="width:200px;height:26px;"/>
			   	</td>
			   	<td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp坐标Y：</td>
	     		<td>
	     			<input type='text' id='zuobiaoy' name='zuobiaoy' style="width:200px;height:26px;"/>
			   	</td>
	     	</tr>
	     	<tr>
	     		<td>纬度：</td>
	     		<td>
	     			<input  type='text' id='weidu' name='weidu' style="width:200px;height:26px;"/>
			   	</td>
			   	<td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp坐标X：</td>
	     		<td>
	     			<input  type='text' id='zuobiaox' name='zuobiaox' style="width:200px;height:26px;"/>
			   	</td>
	     	</tr>
	     	<tr>
	     		<td>距离[m]：</td>
	     		<td>
	     			<input  type='text' id='juli' name='juli' style="width:200px;height:26px;"/>
			   	</td>
			   	<td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp距离(XY)[m]：</td>
	     		<td>
	     			<input  type='text' id='julixy' name='julixy' style="width:200px;height:26px;"/>
			   	</td>
	     	</tr>
	     </table>	
  	</div>
  	<table width="100%" border="0" align="center" cellpadding="5" cellspacing="5" class="formTableNew">
  		    <tr>
  		    	<td align="center"><input id="btnsearch" type="button" value="确 认" class="form_bt_orange" onclick="searchzuobiaodw()" /></td>
  		    </tr>
  	</table>
	
  <script type='text/javascript'>
  		var api = frameElement.api, W = api.opener;

		/*function searchzuobiaodw()
		{
			var jingdu=document.getElementById("jingdu").value;
			var weidu=document.getElementById("weidu").value;
			var juli=document.getElementById("juli").value;

			if((jingdu!='')||(weidu!='')||(juli!=''))
			{
				W.searchshijiandw(jingdu,weidu,juli);
				api.close();	
			}else{
				alert('请输入查询条件！');
			}					
		}*/
		function searchzuobiaodw()
		{
			var jingdu=document.getElementById("jingdu").value;
			var weidu=document.getElementById("weidu").value;
			var juli=document.getElementById("juli").value;
			var zuobiaox=document.getElementById("zuobiaox").value;
			var zuobiaoy=document.getElementById("zuobiaoy").value;
			var julixy=document.getElementById("julixy").value;
			if(((jingdu!='')&&(weidu!='')&&(juli!=''))||
				((zuobiaox!='')&&(zuobiaoy!='')&&(julixy!='')))
			{
				var context='<%=request.getContextPath() %>';	
				W.searchshijiandw(jingdu,weidu,juli,zuobiaox,zuobiaoy,julixy,context);
				api.close();	
			}else{
				alert('请输入查询条件！');
			}					
		}
	</script>	
  </body>
</html>
